using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class scrolld_IDMap : EntityTypeConfiguration<scrolld_ID>
    {
        public scrolld_IDMap()
        {
            // Primary Key
            this.HasKey(t => t.U_ID);

            // Properties
            this.Property(t => t.userID)
                .IsRequired()
                .HasMaxLength(100);

            this.Property(t => t.Create_pepole)
                .HasMaxLength(1);

            // Table & Column Mappings
            this.ToTable("scrolld_ID");
            this.Property(t => t.U_ID).HasColumnName("U_ID");
            this.Property(t => t.userID).HasColumnName("userID");
            this.Property(t => t.scrolld_ID1).HasColumnName("scrolld_ID");
            this.Property(t => t.show_state).HasColumnName("show_state");
            this.Property(t => t.ljsc).HasColumnName("ljsc");
            this.Property(t => t.Create_time).HasColumnName("Create_time");
            this.Property(t => t.Create_pepole).HasColumnName("Create_pepole");
        }
    }
}
